import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'fullpage.js/vendors/scrolloverflow'  //optional.when using scrollow:true
import VueFullPage from 'vue-fullpage.js' //整屏滚动插件
import '../node_modules/vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'
// import axios from 'axios'//引入
// Vue.prototype.$axios = axios //axios不能用use,只能修改原型链


import axios from 'axios'

Vue.prototype.$axios = axios
// axios.defaults.baseURL = '/api'
axios.defaults.headers.post['Content-Type'] = 'application/json';



// import {swiper,swiperSlide} from 'vue-awesome-swiper'

// export default{
//   components:{
//     swiper,
//     swiperSlide
//   }
// }
import VueAwesomeSwiper from 'vue-awesome-swiper'


Vue.use(VueFullPage,VueAwesomeSwiper)

Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
